﻿using CleanLite.Infrastructure.Configuration;
using CleanLite.Infrastructure.SnowId;
using Microsoft.Extensions.DependencyInjection;

namespace CleanLite.Host
{
    public static class HostServices
    {
        public static IServiceCollection AddHostServices(this IServiceCollection services)
        {
            services.AddSwaggerConfiguration();
            services.AddSqlSugarConfiguration();
            services.AddSingleton<ISnowflakeId, SnowflakeId>();
            return services;
        }
    }
}